package com.letoken.platform.repo.admin.req.user;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.letoken.platform.pub.req.QueryReqBase;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

/**
 * @author letokenlabs
 * @date 2022/11/23$
 */
@Data
@ApiModel(value = "查询团队业绩请求对象", description = "查询团队业绩请求对象")
public class QueryTeamAchievementReq {

    @NotBlank(message = "用户id不能为空！")
    @ApiModelProperty(value = "用户id", example = "16478724,16475867")
    private String userId;


    @NotNull(message = "开始时间不能为空！")
    @JsonFormat(shape=JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "开始时间", example = "2023-03-01 13:00:00")
    private LocalDateTime startTime;

    @JsonFormat(shape=JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "结束时间")
    private LocalDateTime sendTime;


}
